/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tableprocessor;

/**
 *
 * @author gleb
 */
public class CathegoryStaticTreeFactory
{
    private static PriceDAO pDAO;
    public static void setPriceDAO(PriceDAO _pDAO)
    {
        pDAO = _pDAO;
    }
    public static CathegoryStaticTree getInstance()
    {
        CathegoryStaticTree tree = new CathegoryStaticTree();
        pDAO.fillCathegoryStaticTree(tree);
        return tree;
    }
}
